package com.tansty.service.enums;

import jdk.nashorn.internal.objects.annotations.Getter;
import lombok.AllArgsConstructor;
import lombok.Data;

@AllArgsConstructor

public enum Errors {
    NOT_FOUND_PET("找不到宠物名",1001),
    NOT_FOUND_USER("找不到用户名",1002),
    PET_IS_BUY("该宠物已经被购买",1003),
    OLD_PASSWORD_IS_NOT_MATCH("旧密码不匹配",1004);

    String msg;
    Integer code;

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
